<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.sysPro, java.util.Map"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%String titlename="登录页背景设置";%>
<HTML>
<HEAD>
<TITLE><%=titlename%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
</HEAD>

<BODY style="overflow:hidden; margin:2">
<script language="javascript" src="jscheck.js">
</script>
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
</script>
<script>
	function btsliPSet(txtbtslisn){
		document.frmLgBGPSet.btslisn.value = txtbtslisn;
		document.frmLgBGPSet.submit();
	}
	function btsliPReset(){
		document.Jz_myform.seraction.value="serbtslireset";
		document.Jz_myform.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>
<TABLE align="center" class="border" cellSpacing="1" cellPadding="2" width="520" border="0" style="margin-top:2;">
  <FORM name="Jz_myform" action="ser_syspara" method="post">
    <!--添加数据表单开始cs.jsp-->
    <tr align='center'>
      <td height='22' class='title'><strong>基站级别</strong></td>
      <td height='22' class='title'><strong>图标</strong></td>
      <td height='22' class='title'><strong>操作</strong></td>	  	 
      <td width="67" height='22' class='title'><strong>基站级别</strong></td>
      <td height='22' class='title'><strong>图标</strong></td>
      <td height='22' class='title'><strong>操作</strong></td>		   
    </tr>
<%
			{
				sysPro sPro = new sysPro();
				Map<String, String> mapBTSLIs = sPro.getBtsLIs();
				String strBTSLI = "";
				for(int i = 0; i < mapBTSLIs.size(); i+=2){
					strBTSLI = mapBTSLIs.get("btsl"+String.valueOf(i));
					if(strBTSLI == null || strBTSLI.equalsIgnoreCase("") || strBTSLI.equalsIgnoreCase("null"))
						strBTSLI = "images/btsli/bts.png";					
				
%>
    <TR class=tdbg align="center">
      <TD height="80" width="80"><%=i%>级基站</TD>
	  <TD width="55" background="<%=strBTSLI%>">&nbsp;</TD>
	  <TD ><input type="button" value=" 自定义 " name="btnPSet" onClick="btsliPSet('<%=i%>');"></TD>
<%
					if(i+1 < mapBTSLIs.size()){
						strBTSLI = mapBTSLIs.get("btsl"+String.valueOf(i+1));
						if(strBTSLI == null || strBTSLI.equalsIgnoreCase("") || strBTSLI.equalsIgnoreCase("null"))
							strBTSLI = "images/btsli/bts.png";						
%>
      <TD width="80"><%=i+1%>级基站</TD>
	  <TD width="55" background="<%=strBTSLI%>">&nbsp;</TD>
	  <TD ><input type="button" value=" 自定义 " name="btnPSet" onClick="btsliPSet('<%=i+1%>');"></TD>	  
    </TR>
<%
					}else{
%>						
      <TD colspan="3"></TD>
    </TR>						
<%						
					}
				}
			}
%>			
    <TR class=tdbg align="center">
      <TD height="26" colspan="6"><input type="button" value=" 完成 " name="btnPReset" onClick="window.close();">&nbsp;&nbsp;<input type="button" value=" 恢复默认值 " name="btnPReset" onClick="btsliPReset();"><input type="hidden" name="seraction" value="sermod"></TD>
    </TR>

  </FORM>
  <FORM name="frmLgBGPSet" action="/btsm/sysBtsLIUpl.jsp" method="post">
  	<input type="hidden" name="btslisn" value="aaa">
  </FORM>

</TABLE>
</BODY>
</HTML>
